{% extends "blog/base.html" %}
{% load static %}
{% load humanize %}
{% load blog_tags %}
{% load tctip_tags %}

{% block head_title %}Tend to Code_一个使用django和bootstrap搭建的个人博客{% endblock %}
{% block metas %}
    <meta name="description" content="{{ site_description }}">
    <meta name="keywords" content="{{ site_keywords }}">
    <!--站长验证-->
    {% if site_verification %}{{ site_verification|safe }}{% endif %}
{% endblock %}

{% block top-file %}{% load_tctip %}{% endblock %}

{% block base_content %}
    <div class="container">
        <div class="row">
            <div class="col-lg-8">
                {% include 'blog/tags/carousel.html' %}
                <div class="text-secondary font-weight-bold py-3 f-15 choice">
                    <a class="pb-2 {% if not request.GET.sort %}active{% endif %}" href="{% url 'blog:index' %}">
                        <i class="fa fa-bars mr-1"></i>时间排序</a>
                    <a class="pb-2 ml-4 {% if request.GET.sort == 'views' %}active{% endif %}"
                       href="{% url 'blog:index' %}?sort=views">
                        <i class="fa fa-fire mr-1"></i>热度排序</a>
                    <a class="pb-2 ml-4 {% if request.GET.sort == 'comment' %}active{% endif %}"
                       href="{% url 'blog:index' %}?sort=comment">
                        <i class="fa fa-comments mr-1"></i>评论排序</a>
                </div>
                {% load_article_summary articles user %}
                {% if is_paginated %}
                    <div class="d-none d-md-block">{% load_pages 10 %}</div>
                    <div class="d-md-none">{% load_pages 4 %}</div>
                {% endif %}
            </div>
            <div class="col-lg-4">
                {% include 'blog/tags/base_right.html' %}
            </div>
        </div>
    </div>
{% endblock %}